package com.jjyd.crlp.services;

import com.jjyd.crlp.domain.entity.UserAuth;
import com.jjyd.crlp.domain.entity.Users;
import com.jjyd.crlp.model.dto.login.LoginDto;
import org.springframework.stereotype.Service;

@Service
public interface LoginService {

    /**
     * 登陆接口，校验登陆的密码
     * @param loginDto
     * @return
     */
    UserAuth login(LoginDto loginDto);

    /**
     * 获得用户信息
     * @param id
     * @return
     */
    Users getUserInfo(Integer id);
}
